package com.spark.incoicings.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spark.incoicings.vo.PurchaseDetailVo;
import com.spark.invoicings.entity.PurchaseDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PurchaseDetailMapper extends BaseMapper<PurchaseDetail> {
    /**
     * 根据采购订单id查询详情
     * */
    List<PurchaseDetail> selectOrderDetail(Integer purchaseOrderId);
    List<PurchaseDetailVo> selectPurchaseDetailVo(Integer productId);
    List<Integer> selectProductIds();
}
